<!--
 @description  常见问题楼层
 @fileName QuestionItem.vue
 @author zengqiongying
 @created 2022/02/23 13:15:36
-->
<template>
  <div class="question-storey">
    <div v-for="(item,i) in list" :key="i" class="content-item" @click.stop="clickHandle(item)">
      <div class="item-name">{{ item.contentTitle }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'StoreyQuestionItem',
  props: {
    list: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {
      imgHost: `${process.env.VUE_APP_STATIC}`
    }
  },

  computed: {},

  created() {},
  activated() {},

  mounted() {},

  methods: {
    clickHandle(item) {
      this.$router.push({ name: 'HelpCenterDetail', params: { id: item.contentId }})
    }
  }
}

</script>
<style lang='less' scoped>
.question-storey{
  padding: 0 10px;
  .content-item{
    padding-bottom: 15px;
    border-bottom: #EFEFEF 1px solid;
    margin-bottom: 15px;
    &:last-child{
      border-bottom:0;
    }
    .item-name{
      height: 20px;
      line-height: 20px;
      font-weight: 400;
      color: #333333;
      font-size: 14px;
      letter-spacing: 1px;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 1;
      overflow: hidden;
    }
  }

}
</style>
